<!DOCTYPE html>
<html>
<head>
    <script>
        if (window.testRunner)
            testRunner.dumpAsText();

        if (window.internals)
            internals.settings.setPreferCompositingToLCDTextEnabled(true);

        function runTests() {
            var scrollParent = document.getElementById('scrollParent');

            // Scroll the parent.
            scrollParent.scrollTop = 250;

            // Force a re-computeCompositingRequirements.
            scrollParent.style.webkitTransform = '';
        }

        window.addEventListener('load', runTests, false);
    </script>
</head>
<body>
    <div id='scrollParent' style='will-change: transform; overflow:scroll; height: 250px; width: 250px;'>
        <div style='overflow:scroll; height: 500px; width: 500px; visibility: hidden'>
        </div>
    </div>
    <pre id="result">PASS - didn't crash.</pre>
</body>
</html>
